summaryrefslogtreecommitdiffstats
path: root/assets/js/teachers.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/teachers.js')
-rw-r--r--assets/js/teachers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/teachers.js b/assets/js/teachers.js
index 5fc2baf..da69e96 100644
--- a/assets/js/teachers.js
+++ b/assets/js/teachers.js
@@ -29,7 +29,7 @@ async function loadTeachers(force_refresh = false) {
];
await Promise.all(promises_to_run);
// If we don't have a list of teachers, query it
- if (teachers === null || force_refresh) {
+ if (teachers === null || teachers === [] || force_refresh) {
try {
let gsecInstance = new gsec();
await gsecInstance.login(username, password);